<template>
	<view class="top-nav">
		<!-- back-icon-color="#FFF" :back-text-style="{color:'#FFF'}" title-color="#FFF" :background="{background: '#0080FF'}" -->
		<u-navbar back-text="返回" :title="title">
			<!-- <u-icon @click="backHome" slot="right" name="home" size="48rpx" color="rgb(96, 98, 102)" :custom-style="customStyle"></u-icon> -->
		</u-navbar>
	</view>
</template>

<script>
	export default {
		props: ['title'],
		data() {
			return {
				customStyle: {
					marginRight: '24rpx'
				}
			}
		},
		
		methods: {
			backHome() {
				uni.navigateTo({
					url: '/pages/index/index'
				})
			},
		}
	}
</script>

<style>
</style>
